package main

import (
	"fmt"
	"strings"
)

func main() {
	namefile := "123.tar.gz"
	split := strings.Split(namefile, ".")
	for _, value := range split {
		fmt.Printf("%s\n", value)
	}

}
